package com.azt.model.easy;

import java.util.Map;

/**
 * 与树形的映射模板类
 * @author 张栋  2016年4月28日下午10:25:45
 */
public class EasyTreeModel implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8598694962380244945L;
	
	//easyui里的基础字段
	private String idField;
	private String textField;
	private String iconCls;// 前面的小图标样式
	private String childField;// 子节点
	
	//自定义扩展
	private String srcField;//地址字段
	private String codeField;//编码
	private String sortField;//排序
	private String typeField;//类型：1.菜单  2.按钮
	
	/**
	 * key 为tree扩展字段的名字，  value 为要映射的字段名字
	 * */
	private Map<String, String> attributes; //自定义扩展字段
	
	
	
	public EasyTreeModel(String idField, String textField, String childField) {
		this.idField = idField;
		this.textField = textField;
		this.childField = childField;
	}
	public EasyTreeModel(String idField, String textField, String childField, String srcField) {
		this.idField = idField;
		this.textField = textField;
		this.childField = childField;
		this.srcField = srcField;
	}
	public String getIconCls() {
		return iconCls;
	}
	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}
	public String getChildField() {
		return childField;
	}
	public void setChildField(String childField) {
		this.childField = childField;
	}
	public String getIdField() {
		return idField;
	}
	public void setIdField(String idField) {
		this.idField = idField;
	}
	public String getTextField() {
		return textField;
	}
	public void setTextField(String textField) {
		this.textField = textField;
	}
	public String getSrcField() {
		return srcField;
	}
	public void setSrcField(String srcField) {
		this.srcField = srcField;
	}
	public String getCodeField() {
		return codeField;
	}
	public void setCodeField(String codeField) {
		this.codeField = codeField;
	}
	public Map<String, String> getAttributes() {
		return attributes;
	}
	public void setAttributes(Map<String, String> attributes) {
		this.attributes = attributes;
	}
	public String getSortField() {
		return sortField;
	}
	public void setSortField(String sortField) {
		this.sortField = sortField;
	}

	public String getTypeField() {
		return typeField;
	}

	public void setTypeField(String typeField) {
		this.typeField = typeField;
	}
}
